import { defineStore } from "pinia";
import { reactive } from "vue";
export const useKeepAliveNamesStore = defineStore('keepAliveNames',()=>{
    const keepAliveNames = reactive([]);
    // 设置路由缓存
    function setCacheKeepAlive(data){
        Object.assign(keepAliveNames,data);
    }
    return {
        keepAliveNames,
        setCacheKeepAlive
    };
});